<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>

<xsl:template match="//module[@type='form']">
	<form class="form {@name}" name="{@name}" method="post">
		<input type="hidden" name="modulename" value="{@name}"/>
		<xsl:apply-templates select="./*"><xsl:with-param name="type" select="form"/></xsl:apply-templates>
		<input type="submit" class="submit" name="submit" value="{@submit}"/>
	</form>
</xsl:template>

<xsl:template match="//module[@type='form']/fieldset">
	<xsl:copy-of select="." />
</xsl:template>

</xsl:stylesheet>